package com.edgclub.edg.api.param;

import android.text.TextUtils;

import com.edgclub.edg.http.param.Params;
import com.edgclub.edg.utils.util.CryptUtil;

import java.util.TreeMap;

/**
 * 帖子举报
 * 
 *
 */
public class TopicReportParam extends Params {

	private String id;
	private String userId;

	private String postsId;

	private String postUserId;

	private String category;

	private String content;
	
	private String replyId;
	private String title;
	private String type;
	private String reportUserId;
	private String timestamp;
	private String state;
	@Override
	public TreeMap<String, String> getParams() {
		params = simpleParams();
		if (null != id && !TextUtils.isEmpty(id)) {
			params.put("id", id);
		}
		if (null != title && !TextUtils.isEmpty(title)) {
			params.put("title", title);
		}
		if (null != type && !TextUtils.isEmpty(type)) {
			params.put("type", type);
		}
		if (null != userId && !TextUtils.isEmpty(userId)) {
			params.put("userId", userId);
		}
		if (null != postsId && !TextUtils.isEmpty(postsId)) {
			params.put("postsId", postsId);
		}
		if (null != category && !TextUtils.isEmpty(category)) {
			params.put("category", category);
		}
		if (null != content && !TextUtils.isEmpty(content)) {
			params.put("content", content);
		}
		if (null != postUserId && !TextUtils.isEmpty(postUserId)) {
			params.put("postUserId", postUserId);
		}
		if (null != replyId && !TextUtils.isEmpty(replyId)) {
			params.put("replyId", replyId);
		}
		if (null != reportUserId && !TextUtils.isEmpty(reportUserId)) {
			params.put("reportUserId", reportUserId);
		}
		if (null != timestamp && !TextUtils.isEmpty(timestamp)) {
			params.put("timestamp", timestamp);
		}
		if (null != state && !TextUtils.isEmpty(state)) {
			params.put("state", state);
		}

		params.put("sign", CryptUtil.md5(convertParam()));
		return params;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPostsId() {
		return postsId;
	}

	public void setPostsId(String postsId) {
		this.postsId = postsId;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPostUserId() {
		return postUserId;
	}

	public void setPostUserId(String postUserId) {
		this.postUserId = postUserId;
	}

	public String getReplyId() {
		return replyId;
	}

	public void setReplyId(String replyId) {
		this.replyId = replyId;
	}

	public String getReportUserId() {
		return reportUserId;
	}

	public void setReportUserId(String reportUserId) {
		this.reportUserId = reportUserId;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
